#include "GameCore.h"


GameCore::GameCore(void) {
	m_FallingBlocks = new FallingBlocks();
	gEngine->getWorld().attachNode(m_FallingBlocks,"Background");
	m_Laser = new Laser();
	m_Laser->setActive(false);
	gEngine->getWorld().attachNode(m_Laser,"Laser");
	m_HUD = new HUD();
	gEngine->getWorld().attachNode(m_HUD,"HUD");
	m_Gutter = new Gutter();
	m_Gutter->loadTextLevelFiles();
	gEngine->getWorld().attachNode(m_Gutter,"Cubes");
	m_ParticleManager = static_cast<ds::ParticleManager*>(gEngine->getWorld().getNode("Particles"));
	m_Map = new Map(m_Gutter);
	m_Map->setActive(false);
	gEngine->getWorld().attachNode(m_Map,"Cubes");	
	m_Block = new Block(m_Map);
	gEngine->getWorld().attachNode(m_Block,"Blocks");	
	m_Settings.coverageMode = false;
	m_Settings.timerMode = false;	
}


GameCore::~GameCore(void) {
}
